]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: hidden workspace thumbnails should not stick out on other monitor
authorAlexander Larsson <alexl@redhat.com>
Tue, 8 Mar 2011 09:04:49 +0000 (10:04 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 17 Mar 2011 13:13:55 +0000 (14:13 +0100)
We clip the entire WorkspacesDisplay to its allocation to avoid things
like the WorkspaceThumbnails sticking out of the primary monitor into
another monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=609258

js/ui/workspacesView.js

index d288c2c14ed785b3490bb320772dc1f86c53a542..b374179503247128096c52ea9fb74063bd2e59ad 100644 (file)
@@ -562,6 +562,7 @@ WorkspacesDisplay.prototype = {
         this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
         this.actor.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
         this.actor.connect('allocate', Lang.bind(this, this._allocate));
+        this.actor.set_clip_to_allocation(true);
 
         let controls = new St.Bin({ style_class: 'workspace-controls',
                                     request_mode: Clutter.RequestMode.WIDTH_FOR_HEIGHT,